package com.nidu.demo.mail.model;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 * 邮件发送事件
 *
 * @author auto
 */
@Getter
@Setter
public class MailSendEvent extends ApplicationEvent {

    /**
     * 邮件日志ID
     */
    private Long mailLogId;

    public MailSendEvent(Object source) {
        super(source);
    }

    public MailSendEvent(Object source, Long mailLogId) {
        super(source);
        this.mailLogId = mailLogId;
    }
}